<?php

App::uses('AppModel', 'Model');

class Tournament extends AppModel {

    var $useTable = 'tournament'; // nome della tabella
    
    public $actsAs = array('Slug');
    
	public $virtualFields = array(
	        'description' => "CONCAT(Tournament.country, ' - ', Tournament.league, ' - ', Tournament.season, ' - ', Tournament.week)"
	);

    public $hasMany = array(
        'Match' => array(
            'className'     => 'Match',
            'foreignKey'    => 'tournament_id'
            // 'order'         => 'Event.dt_ins DESC'
        )
	);
    
		
}

?>